﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MoetutuServer.Helper.Currency
{
    class SelectFile
    {
        public static string FileSelect(String FileFilter="")
        {
            String FilePath = "";
            using (OpenFileDialog dialog = new OpenFileDialog())
            {
              
                dialog.Title = "请选择文件夹";

                if(FileFilter=="")
                    FileFilter = "所有文件(*.*)|*.*";
                dialog.Filter = FileFilter;
                if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    FilePath = dialog.FileName;
                }
            }
            return    FilePath;
        }
    }
}
